import Http from "@/http";

export function pageApi(params:any) {
    return Http.post('earncoin/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.put('earncoin/update/' + params.id, params) : Http.post('earncoin/add', params)
}


export function deleteApi(id) {
    return Http.delete('earncoin/delete/' + id)
}